package net.contrend.system.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import net.contrend.system.form.RoleMenuForm;

public class RoleMenuFormMapper implements RowMapper {

    @Override
    public Object mapRow(ResultSet rs, int index) throws SQLException {
        RoleMenuForm rm = new RoleMenuForm();
        rm.setRoleId(rs.getString("roleId"));
        rm.setMenuId(rs.getString("menuId"));
        return rm;
    }

}
